<?php
namespace app\api\controller\qrcodereader;

use think\Controller;
use Zxing\QrReader;

class Index extends Controller
{
    public function index()
    {
        $qrcode = new QrReader('/home/cky/www/bim/public/upload/pinganqrcode.png');
        $text = $qrcode->text(); //return decoded text from QR Code
        dump($text);
    }
}
